package top.tervest.commons.sms.config;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * Dysms配置属性
 * @author ZhangNanNan
 * @datetime 2019-12-25 17:50
 */

//配置文件前缀
@ConfigurationProperties(prefix = "tervest.sms.dysms")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DysmsProperties {

    /**
     * 使能Dysms服务，默认值：true
     */
    private boolean enabled;
    /**
     * 短信服务访问密钥ID
     */
    private String accessKeyId;
    /**
     * 短信服务访问密钥
     * */
    private String  accessKeySecret;
    /**
     * 短信服务产品，默认值：Dysmsapi
     */
    private String product = "Dysmsapi";
    /**
     * 域名，默认值：dysmsapi.aliyuncs.com
     */
    private String domain = "dysmsapi.aliyuncs.com";
    /**
     * 区域ID，默认值：cn-hangzhou
     */
    private String regionId = "cn-hangzhou";
    /**
     * 端点，默认值：cn-hangzhou
     */
    private String endpoint = "cn-hangzhou";
    /**
     * 短信签名
     */
    private String signName;
    /**
     * 短信模板code
     */
    private String templateCode;
    /**
     * 连接超时时间(ms)
     */
    private String connectTimeout;
    /**
     * 读取超时时间(ms)
     */
    private String readTimeout;
}
